#include <stdio.h> 

int main()
{
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
	float m = 0;
	int n = 0;
	scanf("%f %d", &m, &n);
	float sum = 0;
	for ( int i = 1; i <= n; i++ ) {
		sum += m;
		m = m / 2;
		sum += m;
	}
	sum -= m;
	printf("%.2f %.2f", m, sum);
	fclose(stdin);
	fclose(stdout);
	return 0;
}
